<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/js/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>

</head>
<body>
<s:if test="user!=null">
	<s:form id="forum_discuss_form" namespace="/control/bbs" action="forum_publish">
		<input type="hidden" id="_forum_book_id" name="forum.book.id" value="${book.id}"/>
		<input type="hidden" name="forum.users.id" value="${user.id }"/>
		标题：<input id="title" type="text" style="width: 400px;border: 1px #996666 solid;" name="forum.title"/><br/>
		<textarea id="publish_text" style="width: 750px;height: 200px;" name="forum.content"></textarea><br/>
		<SCRIPT type="text/javascript">go()</SCRIPT>
		<input type="button" onclick="publish()" value="提交"/>
		<input type="reset" value="重 置"/>
	</s:form>
</s:if>
<s:else>
	<form id='user_login_form' action='/mapping/user/action_userLogin.go'>
		<table border='1'>
			<tr>
				<td>${message }</td>
			</tr>
			<tr>
				<td>Email:</td>
				<td class='input'>
					<input name='email' type='text' maxlength='30' style="border: 1px red solid;"/>
					<span>用户名不能为空</span>
				</td>
			</tr>
			<tr>
				<td>密码：</td>
				<td class='input'>
					<input name='passWord' type='password' maxlength='30'  style="border: 1px red solid;"/>
					<span>密码不能为空</span>
				</td>
			</tr>
			<tr>
				<td class='input' colspan='2'>
					<input type='reset' value='重置' />
					&nbsp;&nbsp;&nbsp;
					<input type='button' onclick='userLogin()' value='登录' />
				</td>
			</tr>
		</table>
	</form>
</s:else>
</body>
</html>